package com.woniu.service;

import com.woniu.entity.OrderItems;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderItemsService {
    public void insertOrderItems(OrderItems orderItems);

    public List<OrderItems> getOrderItems(Integer id);

public void deleteOrderItems(Integer id);

    public List<OrderItems> getOrderItemsByMid(Integer mid);

    public void updateOrderItemsStatus(Integer merchant_id,int status);
    public void updateOrderItemsByOrderId(Integer order_id,int status);

    public List<OrderItems> getOrderItemsByStatus(Integer merchant_id,Integer status);
    public void deleteByMid( Integer merchant_id,Integer status);
    public List<OrderItems> getOrderItemsByPid(Integer merchant_id,Integer pid);

    public void updateOrderItemsByOrderItemId(Integer order_item_id,int status);
    public List<OrderItems> getOrderItemsByStatus(Integer status);
    public List<OrderItems> getOrderItemsIf( Integer product_id,Integer merchant_id);
    public List<OrderItems> selectOrderItemsByPid(Integer pid);
}
